package com.magima.core.app;

import android.content.Context;
import android.os.Handler;

public interface IExceptionManager {
	public void init(Context context);
	public void addExceptionCallback(int type, IExceptionCallback callback);
	public void addExceptionCallback(int type, int code, IExceptionCallback callback);
	public void removeExceptionCallback(int type);
	public void removeExceptionCallback(int type, int code);
	
	public IExceptionCallback findByType(int type);
	public IExceptionCallback findByType(int type, int code);
	public IExceptionCallback findByTypeWithoutDefault(int type);
	public IExceptionCallback findByTypeWithoutDefault(int type, int code);
	public IExceptionCallback getDefaultType();
	
	public Handler getHandler();
}
